<%-- 
    Document   : index
    Created on : 26-apr-2012, 17.48.42
    Author     : Daniel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login page</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"> 
<%--
     Author = DANIEL

     Questa è la pagina di login 
     Il bottone submit quando premuto indirizza automaticamente alla classe login passandoli come paramentri
     i campi contunuti nel form 
--%>
</head>
<body>
<div id=login class="well">
<div align="center">
<img src="images/logo_unitn_login.png">
</div><br>

<form class="form-horizontal" method="post" action="Login"> 
    <div align="center" class="control-group">
    <%
    if(request.getParameter("error") != null)
               {
                out.append("<div class='alert alert-error'>");
                out.append(request.getParameter("error"));
                out.append("</div>");
               }
    %>
    </div>
    <div class="control-group">
    <label class="control-label" for="input01">Username</label>&nbsp;
    <input id="input01" class="input-large" type="text" name="user"/>
    </div>
    <div class="control-group">
    <label class="control-label" for="input02">Password</label>&nbsp;
    <input id="input02" class="input-large" type="password" name="password"/><br>
    </div>
    <div align="center">
    <button class="btn btn-primary" type="submit" id="butt_login"  value="Login">Login</button>
    </div>
</form>
</div>
    
    <table class="table" style="width: 400px">
        <tr>
            <td>
                Role
            </td>
            <td>
                Username
            </td>   
            <td>
                Password
            </td>            
        </tr>
                <tr>
            <td>
                Student
            </td>
            <td>
                lucaNervi
            </td>   
            <td>
                sindacato
            </td>            
        </tr>
                <tr>
            <td>
                Student
            </td>
            <td>
                silvanoRogi
            </td>   
            <td>
                calcolatrice
            </td>            
        </tr>
                <tr>
            <td>
                Supervisor
            </td>
            <td>
                bianchi
            </td>   
            <td>
                bianchi
            </td>            
        </tr>
                <tr>
            <td>
                Secretary
            </td>
            <td>
                secretary
            </td>   
            <td>
                secretary
            </td>            
        </tr>
    </table><br>
    
    
</body>
</html>